package Util;
import java.sql.*;
public class Myutil {
	public static  Connection   getConnection() throws SQLException{
		Connection conn=null;
		 
		String url="jdbc:oracle:thin:@localhost:1521:XE";
		  String user="dxr";
		  String password="123456";
		  conn = DriverManager.getConnection(url, user, password);// 连接数据库
		 return conn;
		 
		}
}

	 
